#include <bits/stdc++.h>
using namespace std;
/*

	There is a question:
		There is an irrational square root, ex: 28.
		Your goal is to point it on a line beside the nearest `normal` square roots(not irrational).
		Example: -----5----|----6---- (| is a middle.)
	You need to point:       ^    ^         somewhere here.
	I found a method to solve this question without even writing anything. But i can't prove that
	this method is 100% working, so i made a little program as an attempt to solve it.
	You need to write some irrational square root (as below, ex:28) and it will try to calculate result.
	P.S. N^2 must fit in `long long` type.
	P.S.2 If there is any errors in grammar, my bad, but English is not my main language.



*/
long long find_small_square(long long n) {
    while(sqrt(n) != round(sqrt(n))) --n;
    return n;
}

long long find_big_square(long long n) {
    while(sqrt(n) != round(sqrt(n))) ++n;
    return n;
}

void print_result(int min, int max, int result) {
    cout << endl;
    if ((result-min*min)>(max*max-result)) {
        //print to right
        cout << "---"<<min<<"------|---√"<<result<<"--"<<max<<"---" << endl;
    } else if ((result-min*min)<(max*max-result)) {
        cout << "---"<<min<<"---√"<<result<<"--|------"<<max<<"---" << endl;//print to left
    } else {
        cout << "you wrote round square root number";
     }
    
}
int main() {
    long long a;
    cin >> a;
    print_result(sqrt(find_small_square(a)), sqrt(find_big_square(a)), a);
    return 0;
}
